﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Frame.master" AutoEventWireup="true" CodeFile="changePass.aspx.cs" Inherits="changePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div align="left" class="margin_l260"><asp:Label ID="lblMsg" runat="server" ForeColor="#CC3300"></asp:Label></div>
<table width="930" border="0" align="center" cellpadding="3" cellspacing="1" class="margin_l100">
        <tr>
            <td align="left" valign="top" width="150">
                Mật khẩu
                cũ</td>
            <td align="left" valign="top">
                                    <asp:TextBox ID="txtOldPass" runat="server" CssClass="width_200" 
                                                          MaxLength="255" TextMode="Password"></asp:TextBox>
                                    &nbsp;<asp:RequiredFieldValidator ID="errorOldPass" runat="server" ControlToValidate="txtOldPass"
                                        CssClass="errorMsg" ForeColor="#FF0000" SetFocusOnError="True" 
                                        Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                Mật khẩu
                mới</td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtNewPass" runat="server" CssClass="width_200" MaxLength="255" 
                    TextMode="Password"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="errorPass" runat="server" ControlToValidate="txtNewPass"
                    CssClass="errorMsg" ForeColor="#FF0000" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                Xác nhận mật khẩu
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtConfirm" runat="server" CssClass="width_200" 
                    TextMode="Password" MaxLength="255"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="errorPass0" runat="server" 
                    ControlToValidate="txtConfirm" CssClass="errorMsg" Display="Dynamic" 
                    ForeColor="#FF0000" SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPass"
                    ControlToValidate="txtConfirm" CssClass="errorMsg" 
                    ErrorMessage="Xác nhận mật khẩu không đúng !"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                &nbsp;
            </td>
            <td align="left" valign="top">
                <table>
                    <tr>
                        <td align="left">
                            <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/images/luu.gif" OnClick="btnSave_Click" />
                <asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/images/xoa.gif" 
                    OnClick="btnReset_Click" CausesValidation="False" />
                        </td>
                        <td> <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                        <ProgressTemplate>
                                            <img src="images/spinner.gif" />
                                        </ProgressTemplate>
                                    </asp:UpdateProgress></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

